<?php htmlTemplate('admin_header_frame.php');?>
<div class="title">在线时长统计

</div>
<script type="text/javascript">
function checkstype()
{
	notype = $("#stype").val();
	if (notype=='uid'){
		
//		$(".stype").hide();
		$("#uid").show();
		$("#phone").hide();
		$("#phone").val('');
	}else{
//		$(".stype").show();
		$("#uid").hide();
		$("#phone").show();
		$("#uid").val('');
	}
}
</script>
<table width="100%" cellspacing="1" cellpadding="3" id="listTable">
  <tbody>
  <!-- 搜索开始 -->
  <tr>
	<td colspan="7">
	<form action="">
	  	
	<select name=stype id="stype" >
		<?php 
		
		if (Http::get('stype')=='uid'){			
			echo '<option value="uid">有信ID</option>';
			echo '<option value="phone">手机号</option>';
		}else{
			echo '<option value="phone">手机号</option>';
			echo '<option value="uid">有信ID</option>';
		}
		?>
		
	</select>
	<input type="text" name="uid" id="uid" value="<?php echo Http::get('uid');?>"/>
	<span class="stype" >
	平台：
	<select name="os_type" id="os_type">
		<?php 
		if (Http::get('os_type')=='0'){			
			echo '<option value="'.Http::get('os_type').'">所有</option>';
		}
		if (Http::get('os_type')!='0' and Http::get('os_type')){
			echo '<option value="'.Http::get('os_type').'">'.Http::get('os_type').'</option>';
		}
		?>
		<?php 		
		if (Http::get('os_type')!='0'){?>
		<option value="0">所有</option>
		<?php }?>
		
		<option value="iphone">iphone</option>
		<option value="android">android</option>
		<option value="s60v5">s60v5</option>
		
	</select>
	</span>
	
	日期:			
	<input 
		id="stimeline" 
		name="stimeline" 
		type="text" 
		style="width:85px;"
		value='<?php 
		if (Http::get('stimeline')){
			echo Http::get('stimeline');
		}
		?>' class='date demo_time'  
		onClick="WdatePicker({skin:'whyGreen',dateFmt:'yyyy-MM-dd HH:mm:ss'})"
		>-<input 
		id="etimeline" 
		name="etimeline" 
		type="text" 
		style="width:85px;"
		value='<?php 
		if (Http::get('etimeline')){
			echo Http::get('etimeline');
		}
		?>' class='date demo_time'  
		onClick="WdatePicker({skin:'whyGreen',dateFmt:'yyyy-MM-dd HH:mm:ss'})"
		>
	<input type="submit" value="搜 索" class="btn"> 
	
	</form>
	
	</td>
  </tr>
  <!-- 搜索结束 -->
  <tr>
  	<th align="left" width="50">有信ID</th>  
    <th>手机号码</th>   
    <th align="center">平台 </th>    
    <th align="center">版本</th>
    <th align="center">登录时间</th>
  </tr>
 
	<?php 
	foreach ($rs['list'] as $k=>$v):
	?>
   <tr>
    
    <td align="center">
	<?php echo $v['uid'];?>
	</td>    
    <td align="center">
    <?php echo $v['phone'];?>
    </td> 
    <td align="center" >
    <?php echo $v['os_type'];?>
    </td> 
    <td align="center" >
    <?php echo $v['version'];?>
    </td> 
     <td align="center">
    <?php echo $v['time'];?>
    </td>  
   
  </tr>
  <?php endforeach;?>
  <tr style="background: #F4FAFB;">
  	<td align="left" colspan="3">合计：记录数<?php echo $rs['total'];?>条，每页显示：<?php echo $rs['eachNums'];?>条 </td> 
	<td align="right" colspan="2"><?php echo $rs['html'];?></td>	
  </tr>
 
 
  </tbody>
</table>
<?php htmlTemplate('admin_footer_frame.php');?>